package server

import (
	"CS_THREE/dao"
	"github.com/jinzhu/gorm"
)

type Server struct{}

func (s *Server) FindList(book *dao.Book, db *gorm.DB, pageNum int, pageSize int) ([]dao.Book, int64, error) {
	return book.FindList(db, pageNum, pageSize)
}

func (s *Server) Delete(book *dao.Book, db *gorm.DB) error {
	return book.Delete(db)
}

func (s *Server) Save(book *dao.Book, db *gorm.DB) error {
	return book.Save(db)
}
